package cn.ljy.uem.service.impl;

import cn.ljy.authority.service.impl.IBaseService;
import cn.ljy.uem.dao.SchoolConfigMapper;
import cn.ljy.uem.model.SchoolConfig;
import cn.ljy.uem.model.query.SchoolConfigQuery;
import cn.ljy.uem.service.SchoolConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * 教师课程权限设置业务层
 *
 * @author 王秋林
 * @date 2022/10/25 16：35
 */
@Service
@Slf4j
public class ISchoolConfigService extends IBaseService<SchoolConfig, SchoolConfigQuery> implements SchoolConfigService {
    @Autowired
    private SchoolConfigMapper schoolConfigMapper;

    @Override
    protected void beforeGet(Serializable id) {

    }

    @Override
    protected void beforeUpdate(SchoolConfig SchoolConfig) {

    }

    @Override
    protected void beforeSave(SchoolConfig SchoolConfig) {

    }

    @Override
    protected void beforeDelete(Serializable[] ids) {

    }


    @Override
    protected void afterFindAll(List<SchoolConfig> list) {
        for (SchoolConfig schoolConfig :
                list) {
//            if (schoolClassRoom.getDepartmentId() != null) {
//                SchoolDepartment schoolDepartment = schoolDepartmentMapper.findById(schoolClassRoom.getDepartmentId());
//                schoolClassRoom.setSchoolDepartment(schoolDepartment);
//            }

        }
    }

}
